local hx__aitongai = fk.CreateSkill{
  name = "hx__aitongai",
}

hx__aitongai:addEffect(fk.PreHpRecover, {
  anim_type = "support",
  can_trigger = function(self, event, target, player, data)
    local s = Fk.skills[data.skillName]
    return target == player and player:hasSkill(hx__aitongai.name) and ((data.skillName and data.recoverBy and data.recoverBy ~= player) or
    (data.card and data.card.trueName == "peach" and data.recoverBy and data.recoverBy ~= player))
  end,
  on_use = function(self, event, target, player, data)
    player.room:changeMaxHp(player, 1)
    if data.recoverBy then
      player.room:changeMaxHp(data.recoverBy, 1)
    end
    data:changeRecover(1)
  end,
})




return hx__aitongai
